package com.jinxin.phonecloudmusic.myapplication.net;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by icarus.lee on 2017/6/27.
 */

public abstract class NetRequest {
     String url;

     public NetRequest(String url) {
        this.url = url;
    }

    public NetRequest(){

    }

    //public abstract RequestValues getRequestValues();

    public abstract JSONObject getServiceContent();

    String getUrl() {
        return url;
    }

    /**
     * 拼装请求体
     *
     * @return
     */
    public String getRequestBody() {
        JSONObject content = getServiceContent();//get请求，这里只有header
        return content.toString();
    }

}
